<!DOCTYPE html>
<html>
	<head>
<meta charset="utf-8">
<title>添加回路信息</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/res/layui/css/layui.css"  media="all">
<link rel="stylesheet" href="/res/css/style.css" media="all">
<style>
	.layui-table {
		width:600px!important;;
	}
	/* 加载的表格样式---提高优先级 */
	
	.layui-form-label {
		width: 140px
	}
</style>
<body>
<div class="layui-fluid" style="padding-top:10px;">
<span class="layui-breadcrumb">
  <a><cite>首页</cite></a>
  <a><cite id="Title">添加回路信息</cite></a>
</span>
<div class="layui-clear"></div>
<form id="form_edit" class="layui-form" style="margin-top:30px;" action="">
	<input type="hidden" id="id" name="id" />
	<div class="layui-form-item">
	    <label class="layui-form-label"><span style="color:red;">*</span>名称</label>
		<div class="layui-input-inline">
			<input type="text" id="name" name="name" class="layui-input" lay-verify="fname">
		</div>
		<label class="layui-form-label"><span style="color:red;">*</span>所属变电站</label>
		<div class="layui-input-inline">
		        <input type="text" id="stationName" placeholder="选择所属变电站名称"  autocomplete="off" class="layui-input">
				<input type="hidden" id="station" name="station" autocomplete="off" class="layui-input" lay-verify="fstation" >
		</div>				
	</div>
	<div class="layui-form-item">	
		<label class="layui-form-label"><span style="color:red;">*</span>CT变比</label>
		<div class="layui-input-inline">
		    <select id="ct" name="ct" lay-verify="fct" selectTypeMain="loop_ct">
		        <option value="">请选择CT变比</option>	
		    </select>  
		</div>
		<label class="layui-form-label"><span style="color:red;">*</span>类型</label>
		<div class="layui-input-inline">
		    <select id="type" name="type" lay-verify="ftype" selectTypeMain="loop_type">
		        <option value="">请选择类型</option>	
		    </select>  
		</div>
	</div>
	<div class="layui-form-item">
	     <label class="layui-form-label">额定电流(A)</label>
	     <div class="layui-input-inline">
	       <input type="text"  id="current" name="current" lay-verify="fcurrent" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
	     </div>
	     <label class="layui-form-label">遥测IED</label>
		 <div class="layui-input-inline">
		    <select id="telemetering" name="telemetering" lay-verify="" selectTypeMain="loop_telemetering">
		        <option value="">请选择遥测IED</option>	
		    </select>  
		 </div>
	</div>
	<div class="layui-form-item">
	     <label class="layui-form-label">遥信IED</label>
		 <div class="layui-input-inline">
		    <select id="telesignalling" name="telesignalling" lay-verify="" selectTypeMain="loop_telesignalling">
		        <option value="">请选择遥信IED</option>	
		    </select>  
		 </div>
	     <label class="layui-form-label">供电回路</label>
		 <div class="layui-input-inline">
		    <select id="supplyCircuit" name="supplyCircuit" lay-verify="" selectTypeMain="loop_supply_circuit">
		        <option value="">请选择供电回路</option>	
		    </select>  
		 </div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">选择开关柜</label>
		<div class="layui-input-inline">
		        <input type="text" id="switchCabinetName" placeholder="选择开关柜"  autocomplete="off" class="layui-input">
				<input type="hidden" id="switchCabinet" name="switchCabinet" autocomplete="off" class="layui-input" >
		</div>
	</div>
	<div class="layui-form-item">	
		<label  class="layui-form-label">采集器地址</label>
		<div class="layui-input-inline" style="width:530px;">
		   <textarea id="collectorAddress" name="collectorAddress" rows="5" maxlength="50" placeholder="填写采集器地址......" class="layui-textarea"></textarea>
		</div>				
	</div>
	<div class="layui-form-item">
		<label  class="layui-form-label">开关序号</label>
		<div class="layui-input-inline">
           <input type="text" id="serialNumber" name="serialNumber" class="layui-input" maxlength="50">
		</div>				
	    <label class="layui-form-label"><span style="color:red;">*</span>分项类型</label>
		<div class="layui-input-inline">
		    <select id="itemType" name="itemType" lay-verify="fitemType" selectTypeMain="loop_item_type">
		        <option value="">请选择分项类型</option>	
		    </select>  
		 </div>
	</div>
	<div class="layui-form-item">	
	     <label class="layui-form-label">电压等级</label>
		 <div class="layui-input-inline">
		    <select id="voltageLevel" name="voltageLevel" lay-verify="" selectTypeMain="equipment_grade">
		        <option value="">请选择电压等级</option>	
		    </select>  
		 </div> 
	     <label class="layui-form-label"><span style="color:red;">*</span>详细信息</label>
		 <div class="layui-input-inline">
		    <select id="detailedInformation" name="detailedInformation" lay-filter="finformation" lay-verify="finformation" selectTypeMain="loop_detailed_information">
		        <option value="">请选择详细信息</option>	
		    </select>  
		 </div>	 
	</div>
	<div id="Informationform" style="display:none">
	     <div class="layui-form-item">
		     <label class="layui-form-label">需量限值</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="demandLimit" name="demandLimit" lay-verify="fdemandLimit" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		</div>
		<div class="layui-form-item">   
		     <label class="layui-form-label">电流普通限值</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="generalCurrentLimit" name="generalCurrentLimit" lay-verify="" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		     <label class="layui-form-label">电流严重限值</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="currentSevereLimit" name="currentSevereLimit" lay-verify="" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		</div>
		<div class="layui-form-item">    
		     <label class="layui-form-label">电压普通上限</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="generalUpperLimit" name="generalUpperLimit" lay-verify="" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		     <label class="layui-form-label">电压严重上限</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="criticalUpperLimit" name="criticalUpperLimit" lay-verify="" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		</div>
		<div class="layui-form-item">   
		     <label class="layui-form-label">电压普通下限</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="commonLowerLimit" name="commonLowerLimit" lay-verify="" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		     <label class="layui-form-label">电压严重下限</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="criticalLowerLimit" name="criticalLowerLimit" lay-verify="" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		</div>
		<div class="layui-form-item">
		    <label class="layui-form-label">重要设备</label>
		    <div class="layui-input-inline">
		      <input type="radio" value="0" title="否" name="importantEquipment" checked/>
		      <input type="radio" value="1" title="是" name="importantEquipment" />
		    </div>
		    <label class="layui-form-label">是否告警</label>
		    <div class="layui-input-inline">
		      <input type="radio" value="0" title="否" name="alarm" checked/>
		      <input type="radio" value="1" title="是" name="alarm" />
		    </div>
		</div>
		<div class="layui-form-item">		    
		    <label class="layui-form-label">是否发送微信</label>
		    <div class="layui-input-inline">
		      <input type="radio" value="0" title="否" name="send_wechat" checked/>
		      <input type="radio" value="1" title="是" name="send_wechat" />
		    </div>
		    <label class="layui-form-label">两表法</label>
		    <div class="layui-input-inline">
		      <input type="radio" value="0" title="否" name="twoTableMethod" checked/>
		      <input type="radio" value="1" title="是" name="twoTableMethod" />
		    </div>
		</div>
		<div class="layui-form-item">   
		     <label class="layui-form-label">额定容量(kW)</label>
		     <div class="layui-input-inline">
		       <input type="text"  id="ratedCapacity" name="ratedCapacity" lay-verify="" maxlength="11" autocomplete="off" class="layui-input" onkeyup="CheckInputFloat(this)" /> 
		     </div>
		</div>
	</div>			
	<div class="layui-form-item">
		<label  class="layui-form-label">备注</label>
		<div class="layui-input-inline" style="width:530px;">
		   <textarea id="remarks" name="remarks" rows="5" lay-verify="fremarks" placeholder="填写备注......" class="layui-textarea"></textarea>
		</div>
	</div>	
				
	<div class="layui-form-item" style="margin-top:30px">
	    <div class="layui-input-block">
	      <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">提交</button>
		  <button class="layui-btn layui-btn-primary" onclick="historyBack()">返回</button>
	    </div>
	</div>
</form>
<!--所属变电站-->
<div id="form_addstation" class="layui-form" style="margin-top:30px;margin-left:30px;display:none">
		<div class="demoTable">
			<div class="layui-input-inline">				    	
			    <input type="text" name="name" id="Stationrname" defaultmsg="变电站名称" placeholder="变电站名称"  
			    class="layui-input" condition=""/>    				
		    </div>
			<div class="layui-input-inline" id="searchbutton">
	             <button class="layui-btn layui-btn-normal" lay-submit lay-filter="queryData2"><i class="layui-icon ">&#xe615</i></button>      		
	        </div>
	        <div class="layui-input-inline" style="margin-left:8%">
	              <button class="layui-btn layui-btn-normal" data-type="form_addownerform" >确定添加</button>      		
	        </div>
	        <div class="layui-tab-item layui-show" >
	    		<table class="layui-hide" id="stationData" lay-filter="stationDataTest"></table>
	    	</div>	
		</div>																																							
</div>
<!--选择开关柜-->
<div id="form_addswitchCabinet" class="layui-form" style="margin-top:30px;margin-left:30px;display:none">
		<div class="demoTable">
			<div class="layui-input-inline">
			    <input type="hidden" name="stationId" id="stationId" defaultmsg="变电站id"  
			    class="layui-input" condition=""/>  				    	
			    <input type="text" name="name" id="switchname" defaultmsg="开关柜名称" placeholder="开关柜名称"  
			    class="layui-input" condition=""/>    				
		    </div>
			<div class="layui-input-inline" id="searchbutton">
	             <button class="layui-btn layui-btn-normal" lay-submit lay-filter="queryData3"><i class="layui-icon ">&#xe615</i></button>      		
	        </div>
	        <div class="layui-input-inline" style="margin-left:8%">
	              <button class="layui-btn layui-btn-normal" data-type="form_switchCabinetDataform" >确定添加</button>      		
	        </div>
	        <div class="layui-tab-item layui-show" >
	    		<table class="layui-hide" id="switchCabinetData" lay-filter="switchCabinetDataTest"></table>
	    	</div>	
		</div>																																							
</div>
</body>
<script src="/res/js/common/jquery-3.2.1.min.js"></script>
<script src="/res/js/common/app.js"></script>
<script src="/res/js/validate.js"></script>
<script src="/res/layui/layui.js"></script>
<script type="text/javascript" src="/res/js/equipment/AddEquipment.js" ></script>
<script type="text/javascript" src="/res/js/loop/loop_form.js" ></script>
</html>